package br.com.gaacorp.sai.webapp.action;

import java.io.Serializable;
import java.util.List;

import br.com.gaacorp.sai.webapp.action.BasePage;
import br.com.gaacorp.sai.model.Matter;
import br.com.gaacorp.sai.service.GenericManager;

public class MatterList extends BasePage implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 5200571035720371738L;
	private GenericManager<Matter, Long> matterManager;

    public void setMatterManager(GenericManager<Matter, Long> matterManager) {
        this.matterManager = matterManager;
    }

    public MatterList() {
        setSortColumn("matterId"); // sets the default sort column
    }

    public List getMatters() {
        return sort(matterManager.getAll());
    }
}

